﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DTO
{
    public class CTHoaDonDTO
    {
        private int _MaHD;
        private int _MaSP;
        private string _TenSP;
        private string _SoHD;
        private int _SoLuong;
        private double _DonGia;
        private double _ThanhTien;
        private int _DiemCV;
        public int MaHD
        {
            get { return _MaHD; }
            set { _MaHD = value; }
        }
        public int MaSP
        {
            get { return _MaSP; }
            set { _MaSP = value; }
        }
        public string TenSP
        {
            get { return _TenSP; }
            set { _TenSP = value; }
        }
        public string SoHD
        {
            get { return _SoHD; }
            set { _SoHD = value; }
        }
        public int SoLuong
        {
            get { return _SoLuong; }
            set { _SoLuong = value; }
        }
        public double DonGia
        {
            get { return _DonGia; }
            set { _DonGia = value; }
        }
        public double ThanhTien
        {
            get { return _ThanhTien; }
            set { _ThanhTien = value; }
        }
        public int DiemCV
        {
            get { return _DiemCV; }
            set { _DiemCV = value; }
        }
        public CTHoaDonDTO()
        {
            this.MaHD = 0;
            this.MaSP = 0;
            this.SoHD = "0";
            this.TenSP = "Chưa biết";
            this.SoLuong = 0;
            this.DonGia = 0;
            this.ThanhTien = 0;
            this.DiemCV = 0;
        }
        public CTHoaDonDTO(CTHoaDonDTO x)
        {
            this.MaHD = x.MaHD;
            this.MaSP = x.MaSP;
            this.SoHD = "0";
            this.TenSP = x.TenSP;
            this.SoLuong = x.SoLuong;
            this.DonGia = x.DonGia;
            this.ThanhTien = x.ThanhTien;
            this.DiemCV = x.DiemCV;
        }
    }
}
